﻿using UnityEngine;
using System.Collections;

namespace InputSystem
{
    /// <summary>
    /// 输入管理器
    /// </summary>
    public class InputManager:IInputManager
    {
        public RuntimePlatform RuntimePlatform
        {
            get
            {
                return RuntimePlatform.WindowsPlayer;
            }
        }

        public void InitInputListener()
        {
            GameObject go = new GameObject("InputListener");
            MonoBehaviour.DontDestroyOnLoad(go);
            switch (RuntimePlatform)
            {
                case RuntimePlatform.OSXEditor:
                    break;
                case RuntimePlatform.OSXPlayer:
                    break;
                case RuntimePlatform.WindowsPlayer:
                    go.AddComponent<WindowsInputListener>();
                    break;
                case RuntimePlatform.WindowsEditor:
                    break;
                case RuntimePlatform.IPhonePlayer:
                    break;
                case RuntimePlatform.Android:
                    break;
                case RuntimePlatform.LinuxPlayer:
                    break;
                case RuntimePlatform.LinuxEditor:
                    break;
                case RuntimePlatform.WebGLPlayer:
                    break;
                case RuntimePlatform.PSP2:
                    break;
                case RuntimePlatform.PS4:
                    break;
                case RuntimePlatform.XboxOne:
                    break;
                case RuntimePlatform.tvOS:
                    break;
                case RuntimePlatform.Switch:
                    break;
                default:
                    break;
            }
        }

    }
}